package com.zhangzeqin.code.service.Impl;

import com.zhangzeqin.code.dao.Impl.TimeDaoImpl;
import com.zhangzeqin.code.dao.TimeDao;
import com.zhangzeqin.code.service.TimeService;

import java.sql.SQLException;

public class TimeServiceImpl implements TimeService {
    /**
     *实例化一个持久层对象
     */
    TimeDao timeDao=new TimeDaoImpl();
    @Override
    public double getTime() throws SQLException {
        return timeDao.getTime();
    }



    @Override
    public boolean updateTime(long startTime,long endTime) {
        return timeDao.updateTime( startTime, endTime);
    }
}
